<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
        xmlns:c="http://java.sun.com/jstl/core" 
        xmlns:p="http://primefaces.org/ui"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        
        >

    <ui:composition template="template.xhtml">
        <ui:define name="content">         
            
    <div id="body">
        <div class="panel">

            <h2>Your Order is Complete :
                <h:outputText value="#{cart.order.id}"/>
            </h2>

            <h:messages layout="table" showDetail="true"/>

            <p><b>Your order id is <h:outputText value="#{cart.order.id}"/></b></p>

            <h:form>
                <p:dataTable value="#{cart.order.orderLines}" var="orderLine">
                    <p:column>
                        <b><h:outputText value="#{orderLine.item.product.name}"/></b>
                        <br/>
                        <h:outputText value="#{orderLine.item.name}"/>
                    </p:column>
                    <p:column>
                        <h:outputText value="#{orderLine.quantity}"/>
                    </p:column>
                    <p:column>
                        x
                        <h:outputText value="#{orderLine.item.unitCost}"/>
                        $
                    </p:column>
                    <p:column>
                        =
                        <h:outputText value="#{orderLine.subTotal}"/>
                        $
                    </p:column>
                </p:dataTable>
                <br/>

                <div class="zoneButton">
                    Total $
                    <h:outputText value="#{cart.order.total}"/>
                </div>
            </h:form>


            <P>You will receive shortly an email confirming your order</P>

            <P>Thank you for shopping with the YAPS Pet Store</P>


        </div>
    </div>
            
</ui:define>
	
        
    </ui:composition>
</html>